//
//  HHMessageCell.m
//  HHBroker
//
//  Created by He Wei on 10/2/15.
//  Copyright © 2015 harry. All rights reserved.
//

#import "HHMessageCell.h"

@implementation HHMessageCell
@synthesize titleLabel, infoLabel, timerLabel, iconImageView;
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(75, 15, kCurrentWidth/2-20, 30)];
        titleLabel.font = kJiaYuanFontWithSize(16);
        titleLabel.textColor = UIColorFromRGB(0x2d2d2d);
        titleLabel.textAlignment = NSTextAlignmentLeft;
        [self addSubview:titleLabel];
        
        infoLabel = [[UILabel alloc] initWithFrame:CGRectMake(75, 50, kCurrentWidth-90, 30)];
        infoLabel.font = kJiaYuanFontWithSize(12);
        infoLabel.textColor = UIColorFromRGB(0x5d5d5d);
        infoLabel.textAlignment = NSTextAlignmentLeft;
        infoLabel.numberOfLines = 0;
        [self addSubview:infoLabel];
        
        timerLabel = [[UILabel alloc] initWithFrame:CGRectMake(kCurrentWidth/2-20+80, 15, kCurrentWidth/4+30, 30)];
        timerLabel.textColor = UIColorFromRGB(0x5d5d5d);
        timerLabel.font = kJiaYuanFontWithSize(12);
        timerLabel.textAlignment = NSTextAlignmentRight;
        [self addSubview:timerLabel];
        
        iconImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 20, 50, 50)];
        [self addSubview:iconImageView];
        
        
        
        
        
        
        
        
    }
    return self;
}



@end
